fix wms loader