Fix a bug related to creating new notes