reset home flag variable in homing function.