script fixing