fixing key error on _set_message_name