fix a bug in oa_sms.c