Fix 500 in sms code view