simple unbind global leak fix

I noticed today that in the pull req I sent yesterday the `mi` variable is accidentally declared as a global.