fixes to monthly analysis