Update Worker.java

fix bug