fix easyPieChart update function