fixed edge case where domain was not in whitelist