trying to fix recursive sms bug