Handle some edge cases with very small lines