Try setting attributes on correct node in set() method

Addresses issue #3