fix pgf hash