fix month check