fixed minor bug in Sim_AvgQs_HD.py that is not in Sim_AvgQs.py