fix bug where input text will be set to empty string on rotation