fixed bug of invalid chart file name