write and read edit fatal error