fix factory failed to creat work