Fixed email sent several times