Fixed bug with scroll to position in text output