fixed modify-hypercube removes domainrestrictions