fixed bug in text cases