fixed bug for cases were group decomposition fail causes crash