Fixed bug which didn't display charts correctly.