Fixed some bugs with reducerStg3.py