Correcting hash value