fix close syntax