Fixed bug where cursor on first line caused issue.