Fixed bug in import_ratios()