fixed synchronize problem