fix convert ratio