fix dependences dead lock