Fixed warnings by adding a generic type token.