Fix wrong behavior when sending a notice.