Fix a couple of note editing bugs