Fix placing the cursor at the start of the file on loading