bugfixes in index