Correct hashcode method.