Fixing type error in Sms delivery