fixed syntax error in relationship controller