Fixed array index in ResultList.add