fix switching maxStay minStay