Fixed ratio bug. Now figured as float instead of int.