Fixes to sms-code.