Fix bugs

- Bug on desactivate and reactivate the plugin
- Use the real number of emails sent, not the max