fixed leak in completions generator