fix crash on clean in nts