Fixes in text structure