fix initial nsd in cleanup process