fix two problems with scd doesn't resume properly