Fix a bug with generics use.