Fixed issue when max nodes wasn't specified and was later set by limit to not request that as the actual maximum.