Fixed the bug for the x axis tick mark alignment