small bugfix in domain template