bug fix in timechart.js