fix handling of amd injects