fix close issue