Update worker.class.php

[UPDATE] Fix for issue #957