fix WMS with multiple styles and layers