fixed bug to command line