fix cookieCtrl