Fixed writer multi-threading.