#9655: check geometry polygon better