api relationship details bug fix