fix some errors in notes_controller and grade_entry_forms_controller