Fix domains moving into the wrong key after processing