Fix getting new note id.