Fix infinite loop from data with only 4 vertices