fixed relationship selection bug