Fix some bug on SMS modiule