Error in ratio calculation and correction