Fix of recent geometric algoritm.

- Also now the better spec is written for it.