fix analysis script