Fix bug in webservice search and post variables