Fix the bug that FileBuffer will use wrong byte array outputstream.