Fixes bug that send mail to deactivated users