fixes a bug with empty emails