fix ns-model-destroyed check