fixed staffs.index