Attempt to fix an issue in collectFuture().