Fixed hang that appeared if text was empty