Fix headless issue on Mtn Lion