Fixed an error where wildcard or special domains could break