fix bug in syncer