monthly_averages plotlines bug fix