fix crash if command line value not given at the end