fixed regression with script_name