moving assignment of async.setImmediate

now after async.nextTick: wasn't defined yet