horizontal scroll bug fix