Fix adding of non-collection resources.