Lost window masklayer after switching layout