Fixed bug where plain text input is not accepted