Fixed two important a bugs in the group decomposition code.