fix closing a