Fixed A bug to use charts