headless client fix