Fix indexed WMS so it works in the Layer Detail page