When selecting an argument from the arguments selection that shows up while typing a command, the argument is inserted in front of the currently selected text, instead of replacing the currently selected text. This causes invalid arguments to show up.