Fixing one last bug by using local state variables in documented shortcut

[#56442032]