correct the notice type of messages