Fixed bug about waypoints deletion