Fix: memory leak in applying element hiding CSS.