fix auto move bug