Fixes a commandline error

Passes unit tests.