Fix memory problem on insert by flushing pipeline