some little bug fixes in textmanage