Minor fixes in webservices functions