Fixed a ChartServer compatibility issue between Windows and Ubuntu