Fixed bug in argument parsing