Fixed an issue with the Input Handling