fix bug for multiple arguments for pool.all.emit, pool.any.emit