fix unexcepted horizontal scroll bug.