Fixed bug with JSON decoding of chart options