minor fix for polymorphic