Bugfix: check if worker exists before executing