target script fix