change messageId NoneType error