Fixes undefined local variable.
Merge pull request #103 from boudewijn-tribler/bugfixes

Fixes undefined local variable.