Found a problem that prevented the cursor from appearing at documentCharacter 0. Kind of patchy solution, but it works