fix cookies issue