fix the wrong scroll distance