Fix write.