fix mode bar graph, remove console.log