Fix error when update domain