Resolved some issues in relationship

The dependency associated with relationship was’t working. Moreover
some errors happened.