fixing issue with resource locator