bug fixes in findNode