Fixed indexing on waypoint coordinates.