fix inline script translation when no pack mode