Hash fix for spg