fix httpserver errors