Fix bug in tnmap example

Bug prevented small subnets from being scanned.