Fix some crashes. Still more to do
Fix some crashes. Still more to do

zjh171/sstoolkit,TDness/sstoolkit,Amnysia/SSToolkit,k131050059/sstoolkit,samsoffes/sstoolkit,SuPair/sstoolkit,rtsbtx/sstoolkit,samsoffes/sstoolkit,lijie121210/sstoolkit,Amnysia/SSToolkit,andaluz/sstoolkit,carabina/sstoolkit,sideci-sample/sideci-sample-sstoolkit,cobook/sstoolkit,zilaiyedaren/sstoolkit,soffes/sstoolkit