fix missing geometries bug