fixed regressions in showing charts on demo page.