fixed text length bugs.