Fix for dependent dimension calculation for multiple sublattices.
Fix convex hull calculation for multi-sublattice case