Fix the unsmooth moving issue