fixing issues in input manager