Fixed race condition in GuiTextReader