fixed index error for matgroup in 3d geometry