Fix crash when displaying notes in admin tool