fix multiple charts problem