Fixes input issues