fix bug in the main chart