Fix selection of relationship

Seems like you forgot some debug code.