valhook fix from andywolk