bugfixing for version index