bugfix cookies and search key