Bug/respect nested x origin

respect nested x origin.