Fixed bug when a number is passed into convert_to_number