minor bug fixes in index