Added code to detect and fix a glitch with the proprietary NVIDIA drivers.