Fixes Invalid ratio error when ratio is not set

I would recommend undoing 7673cd5cc9d8e797a5b83cf956ede4eaae3deb7e for the time being
as some of the client scripts have code dependent on the input being a string.
Merge pull request #549 from sammy2142/patch-1

Fixes Invalid ratio error when ratio is not set for transmission