Fixed heuristic error