Fixed an error in the ratio