ensure correct domain