fixed subhalo bug