fixed bug in sending sms due to code refactoring which turned maps into jsonobjects