patch for mapped relationship handler