Fixing sorting of layers: Selection layer is always on top.