Resolve generics compile problem.