Fix write.html