fixed bug in cookie store