some fixes for multiple wms layers, et rid of duplicate ids