fix small reference issue in WMSLayerPanel