Fixed build error and fixed setting the notes property when adding a new entry