Corrected hash code