fixed json reference error in relationship controller