Fix synchronization script