fixed check on ratios