fixed broken synch script