fixing the close tab bug for now.