Fix piechart only one projec bug.