Fixed most factory resource production.