Fixed many Input-related bugs and issues