fixed script_name issue