Some fixes for WMS multiple preview on page reload