Corrected reentering when entering leg-occur mode