fix unwritable file