Fixed crash with NS2Stats

I caused an infinite loop by accidentally omitting a local statement.
Merge pull request #29 from Person8880/develop

Fixed crash with NS2Stats