fix is-node-deleted check