fixed no cookie issue