bugs in sms controller fixed