Fixed another dead lock condition