Fixed crash/swallowing on writing.