fix bug in sms portion