patch to fix error with AMD locator