Fixed datatype in resource provider