bug fixes, adding change-loop check in heurusers.py