fixes in generating domains of nodes