add error plot fit bugs