bug fix to charts