Fixed a few Input related bugs.