Fixing exception that happens when you click the add new relationship
button