fixed a bug in dependences