fixed the crash when going between pages, return next() in webserver.js