Fix bug in use of WPS proxy