fixed error in distro.  `result` was being referenced, but `localResult` was being defined.