Fixing XamInputSetState.