fixed error in index