Fixed cookie unset bug