range is now correctly set when a domain is attached to the definition