fixed bug in ratio calculator