fix analyze_script (HH)