fix depends on removed modules upgrade