fix close warning