fixed some problems with the horizontal scroll