fix error rendering index