fix scaling over x axis for #3