Fix a close issue