fix one bug when adding or deleting node