Fix xdomain and ydomain