fix cursor position in note entry mode