Fix month range check