bug fix: should reset value in dbuf_resize