fix failed dependencies not taking type of objects into account