Bug fix in chart module