fixed bug in text processing
fixed bug in text processing