Fix bug if no location cookie is set