relationship bug fix