Fix resource repository injection.