fixed a bug on the sailing no-wind heuristic