bugfix: resets the domain field after an insertion