fixes for index.