Fixed unsetting relation bug.