Fix a bug with index rendering.