Fix sms processing