Flexible load of layers

Put the last line inside the onLoad callback.

function onLoad()
  layerSelectChanged()
end

Or delete the last line altogether.

The purpose of that line is to make sure that only the selected layer is unmuted. But it looks like it’s executed before the correct parameter value is loaded.