Fixed Exception whcih comes when text contains too many "\n"