fixing inputhandler