fixed a bug where a sync device without a refreshSyncState mechanism will infinite loop.