fix bug in errorbar plotting