bug fix for text format