fixes the horizontal scroll problem