fix initial sync