Fixed scope issue in relationship field type.