Fixed #287 -- 'variable is referenced before assignment' error

Thanks to @dreadatour for the original pull request.
1 file changed