Fixed web.js
Reset the size of buffer