Horizontal scroll bug fix