Fix bug with horizontal scroll