Update AutoPatchWork.js

fix bug