Fixed Errors in the input system