fix bug in command setup