fix bug in module web server sending multiple responses