Fix write task wait, incredibly increasing efficiency.