minor fixes to text tool