Fixed issue when no domain present.