fix #182: handle series with 0 or 1 values