Fixing ugly bug.

The command line interface desperately needs tests...