Solve a bug in default-bar-chart-cycle parameter, may overflow sometimes