fixed bug with index view