fix model with polymorphic_identity fixes #97