fix generic-related warning