Fixed a bug in text.
Added text flag