bug fix in webserver script