bug fixes for planner running too long on greedy heuristic