fix geometry template