fix bug of xinput