Fixed an issue with input processing