fix some bugs with block-buffered translation