fix error in text email view