might have fixed race condition on sync