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.