How to fix issues with plain text