little fix in worker class