Fix bug in "paste as plain text" option