fix bug in cli