fixed bugs in add, remove, and findNode