Fixed many through association to use links if defined.