Fixed some bugs in command-line converter.