Fixed pie chart loading issue