debugged x axis position incorrect