bug fixed on  reduction.py. clear data.