fixed relation bug