resolved the dead lock of sync_*