Fix objectclass equal check