fixed text length bug