fix generate close month