fix nested completion insertion after typing