[library]Fix some struct problems in Worker model.