Prevent refs on global elements.