Fixed return value from worker_thread