problem of unit without flag and vice versa