correct the message code in controller