fixed the polymophic association generation