fix message not synced correctly issue