Fixed bug in relationship field;