fixed minor things for heuristicsAgent