Fix usage of script definition