Fix shifted modifiers in layout variables.