repair some bug in USB support