Fix waitHanlde num cannot exceed 64 problem.