deadlock correct fix