bug fix (again) in chaining for writes