Fix 'data' being referenced before assignment
Merge pull request #99 from justinfx/master

Fix 'data' being referenced before assignment