bug fix in sms stuff