bug fixes in index