Fixed bug in the do_not_sms and do_not_email logic