workaround deadlock