Solved bugs in IndexText