fixed path's nextWaypoint issue.