fixed bug in conversion.py