Fixed bug when parsing charts