bug fix to charts.html