fixing minor error on index view