Fix a bug for convert_recursive