package: avoid ICE error with proper template