fixed sync-tables bug