correct wrong delete of dependence