bugfix for 500 on new notes page