FIX: A few bugs in tutorial ssmd_rs