fixed issuw with index view