Fixed the movement execption