bug fix with text length