fix bug in permission/index view