fix for max in flight (fromNSQ)

Currently max-in-flight doesn't work. This should fix it.