fix type-to-geometry converte