fix polymorphic association and user defined class name for association