fixed removing of the current active node, added callback error handler