fix balance_plot