fix for creating sms nodes

-switch statement now properly gets attribute and sets to
attribute.value()