fix day num issue