fix Write