fixed polymorphic references