fix listing dependencies if the same module is missing twice