fix a bug in error sifting
change the way to calculate ratio of errorbar