Fixed buffer in web.js