fix bug in dChart