Fix bad handling of arguments passed to commands with ratio queries.