xfmToIdx bug fix for aniso patches