fixed if statement in movementsystem