Just refactoring email fails