fix errors in httpserver