Fixed a crash in print_notice.