fix docs to prevent polymorphic_type problems