Fixed some bugs with the X axis scale