Fixed incorrect variable initialization that was causing intermittent crashes.
Merge pull request #7 from BoundaryDev/master

Fixed incorrect variable initialization