Fix open for write.