fixed x-origin issue