fix email parsing error