fix closing code