Fixed bugs with sms sending