Fixing convert_to problem