fixed hashCode for Square