remove some capitals in resources.type