bug fix on index view