Fixed a bug in PlayerInput.