fixed bug: wrong cookie