Fixing geoserver WMS query for deployments