Fixed country code check call in ensemble data function.