fix inputhandler