fix loading chat messages