fix for max in flight
Merge pull request #560 from nikhan/master

fix for max in flight (fromNSQ)