fix a/sync bug