Fixed a bug with input being ignored