Corrected error when scaling with errorbar