cookies and shadow fix