fix issue with index page