Fixed bug in webservices