smartinput fixes