Fixed on_notice to actually work