fixed remove node in sidebar 

when argument.length is 1, arguments[0] is already deleted node id. 
changed to tmp.parent.id