fix local variable ref before assignment
Merge pull request #5 from daveriess/ven-fixes

fix local variable ref before assignment.  Thanks Dave.