Fixes mavg smoother and unsorted x values with smoothers