repaired generics error