Fix write