Fix problem if worker is a string