Fix smart completion.