headless browser fix for ci