Fixed bug in DerpEmailService