Fixed bug with change in Input.java