mid relation fix