fixed bug in cycle homing