Finally fixed the set-attribute thing.