fix bug for webservice handler