minor bug in index