Fix setting dependencies to clazz