Fix return value for worker