Fixed issue with resource type being removed.