Fixed index rendering bug