fix bug with  repeated emails