fix leak in nts