Fixing scrolling displacement for text