fix mail logix