fixed email parsing error