Fixed a write operation method.