fixed model generation and month switching

fixed model generation and month switching