api relationship search bug fix