fix recursion error in monotone plan heuristic