Fixed sig fault 11 with command line parsing