Fixed the text parsing