fixing parsing error when ration was a float