bug fix: buffer delayed write