fix error with index page