fix and error handling on write