command line arguments bug fixed