try a fix for deadlock