Conversion code issue