Fix a crash with the note system.