Fixed invalid packet bug caused by no default value to optparse