chart mode switch bug fix
Merge pull request #22 from benitoro/master

chart mode switch bug fix