fixe error on cookie var