fix animate direction and fix waypoint