Fix bug in clipboard and autotype code.