Fix "undefined error_messages"