fix InputHandler