fix bug in HasManyAssocParams