Corrected hashcode computation