error fixes to charts