fix loop closure issue (#128)
I thought that our linter would have caught this, but apparently it only
catches certain shapes of this bug.
Probably worth auditing the rest of the codebase for this problem at
some point (or just wait for the go team to fix it like jake said they
might)
authored by