[FIX] Indexed scripts should always use script_id.