model: type fix and bug fix of node delete