Bugs fixed where the planner and evaluation packages were getting stuck in an infinite loop