Fix invoking of script