fix error dependences