Fixed issue with wrapping of resource.