fixed the scaling of the axis when filtering