Fixed stupid bug causing Add Note button to crash