fix for input text handling