The day i was testing it, i did test it correctly and it was doing strange things. i tested again and now it seems to be working properly