Fixed issue with resources.