Fix history heuristic