fixes incompatibility with recent resourcespaces