fix the reset not work under linux defect.