monthly_aves bug fix