Minor fixes in web services functions