Lcg/script resource fixes