bugfix in index-directory