Fix equality check in domain hack