fixed disposing of resources, InputProcessor