Fixed bug with input system.