StreamBuffer bug fix.