fixed bug in email chart