fix inputState