Sync write fix