bugfix in index