Fix mishandle of visibility modifiers
Toggle for visibility automatic order