Fix sms
Fix bugs and typo