Fixed bug in charts modules