fix bug in command line hack