fixed null references with no existing cookies