Fix default nextNode value and typo in remove