Fixed a small bug associated with text display.