Fix unassign node, was not clearing attributes as it was supposed to