fixed tab completion bug where generated completions weren't appending correctly