fixing errors to the scale along x class