Fixes email protocol error