fix bugs for single outgroup