Bug fix to horizontal scroll