Fix a generics warning