fix USB endpoint reset code