Fixing bug when adding a note