bugfixing in index viewer