Small fix if Layers>1