Fix email output plugin