fix a bug when passing from january to december