fixed references/const issue (removeNode cant get a const ref)