Some optimization.
Fixed to reuse one write window.