Fix layerlist bug