fix pgc on fail