fixed pos/neg bug with pie chart