Start to fixe bug #22, resource_types in an array not a simple hash