Fix settings not working when no cookie is set