Fixed bug in completion engine.