i was tring to figure out the bug but i was runing out of time for submition
restarting the level from the pause menu will fix it