fixed a relatedness bug