fix cookiepath