Fixes email bug