fix empty relationships