Fix grav hash generation