Fixed an issue where win7 headless got set to false