Corrected loading of WMS layers