fix loading of messages