Fixed a bug in ManhattanHeuristic.