Fix flushAndBlock.