Fix for bug in Resource Provider.