fixed the Task systembug for last waypoint

sorry,
found and fixed!