the same change would have to be made down here if you call switchToResourcesParentIfRequired above