Fixed a bug when editing the note's date