fix homing with sense switches