Fixed error in convert_reference.py