fix geometry generation error.