fixed synchronization issue