Fixed bug in Input.