Minor fix to headless parameter setting.