Fix bugs on SMS sending.