Attr nodes are not cloned properly