fix month partition bug