fix month detection