fixing errors of charts