Fixes z-index issue with popups.