Fix hashCode() crash