Fix country flag check warning

resolve #404