[BugFix] several fixes for bugs in SMP and SSP