Remove reference to ResourceManager. Simplification or bug?