Fix selection of relationship