Fixed relation bug.