fix for month case in generate recursion