index page error fix