fix some auto scroll bugs