Minor fix to refinement.py