Fixed bugs to get chart to show up