fix sending sms to multiple addresses and not all messages being marked as sent