Fix 'variable is referenced before assignment' error

I think it is just mistype. It's works well without this small fix, but looks a little bit ugly.