sms server code fix