fix horizontal scroll bug