fix input manager